<h1>客户管理 - <span id="secondHeading">客户信息</span></h1>
<% if @flash[:notice] -%>
        <div id="notice"><%= @flash[:notice] %></div>
<% end -%>
<TABLE border="0" id="LIST_TB">
	<TR id="LIST_TB_TITLE">
    	<td>客户名</td>
    	<td>区域</td>
    	<td>联系人</td>
    	<td>电话</td>
    	<td>地址</td>
    	<td>电子邮件</td>
    	<td>家人</td>
  	</tr>
<%@agents.each do |agent|%>
	  <tr id="LIST_TB_CONTENT1">
	    <td><%=agent.name%></td>
	    <td><%=agent.part%></td>
	    <td><%=agent.person%></td>
	    <td><%=agent.phone%></td>
	    <td><%=agent.address1%></td>
	    <td><%=agent.email%></td>
	  	<td><%=link_to(image_tag("/images/family.gif"),{:action=>"list_family",:agent_id=>agent.id})%></td>
	  </tr>
<%end%>
</table>
<table>
        <tr>
                <td>
                        <input type="button" value="打印当前页" class="sub" onclick="openPrintWindow('LIST_TB')"/>
                        <input type="button" value="导出当前数据" class="sub" onclick="CellAreaExcel('LIST_TB')"/>
                </td>
        </tr>
</table>
